#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main()
{
    char arr[100];
    gets(arr);
    char* ap = arr;
    for (int i = strlen(arr)-1; i >= 0; i--)
    {
        printf("%c", *(ap + i));
    }
    return 0;
}